<?php
    class DirManager {
        private $DirDataAdapter;
        
        function __construct($selectedDir) {
        $this->DirDataAdapter = new DirDataAdapter($selectedDir);     
        }   
         
        function SelectItem() {
           return $this->DirDataAdapter->Select();
        }
        
        function UpdateItem($DirObject,$OldDirname) {
            $this->DirDataAdapter->Update($DirObject,$OldDirname);
        }
        
        function InsertItem($DirObject) {
            $this->DirDataAdapter->Insert($DirObject);
        }
        
        function DeleteItem($item) {
            $this->DirDataAdapter->Delete($item);
        }
             
        function __destruct() {
        }
    }
?>
